"""
机器信息数据
"""
machines_db = [
    {
        "id": 1,
        "name": "Server-01",
        "ip": "192.168.1.101",
        "cpu": 45,
        "memory": 68,
        "disk": 52,
        "status": "online",
        "os": "CentOS 7.9",
        "purpose": "交易服务",
        "owner": "张三",
        "location": "北京机房-A区",
        "uptime": "45天12小时",
        "lastReboot": "2024-09-23 10:30:00",
        "processes": [
            {"pid": 1234, "name": "java", "cpu": 15.2, "memory": 2048, "user": "root", "status": "running", "port": "8080"},
            {"pid": 5678, "name": "nginx", "cpu": 2.5, "memory": 128, "user": "nginx", "status": "running", "port": "80, 443"},
            {"pid": 9012, "name": "mysql", "cpu": 8.3, "memory": 1536, "user": "mysql", "status": "running", "port": "3306"},
            {"pid": 3456, "name": "redis-server", "cpu": 3.1, "memory": 512, "user": "redis", "status": "running", "port": "6379"},
            {"pid": 7890, "name": "python3", "cpu": 5.6, "memory": 256, "user": "app", "status": "running", "port": "5000"}
        ]
    },
    {"id": 2, "name": "Server-02", "ip": "192.168.1.102", "cpu": 78, "memory": 82, "disk": 71, "status": "online", "os": "Ubuntu 20.04", "purpose": "风控系统", "owner": "李四", "location": "北京机房-B区", "uptime": "30天8小时", "lastReboot": "2024-10-08 15:20:00", "processes": [{"pid": 2345, "name": "postgres", "cpu": 25.8, "memory": 3072, "user": "postgres", "status": "running", "port": "5432"}, {"pid": 6789, "name": "node", "cpu": 18.5, "memory": 1024, "user": "app", "status": "running", "port": "10001"}]},
    {"id": 3, "name": "Server-03", "ip": "192.168.1.103", "cpu": 23, "memory": 45, "disk": 38, "status": "online", "os": "Windows Server 2019", "purpose": "应用服务", "owner": "王五", "location": "上海机房-C区", "uptime": "15天3小时", "lastReboot": "2024-10-23 08:00:00", "processes": [{"pid": 4567, "name": "IIS Worker Process", "cpu": 8.2, "memory": 512, "user": "IIS APPPOOL", "status": "running", "port": "80, 8080"}]},
    {"id": 4, "name": "Server-04", "ip": "192.168.1.104", "cpu": 91, "memory": 95, "disk": 88, "status": "warning", "os": "CentOS 8.5", "purpose": "数据处理", "owner": "张三", "location": "北京机房-A区", "uptime": "60天15小时", "lastReboot": "2024-09-08 14:00:00", "processes": [{"pid": 5555, "name": "spark-submit", "cpu": 45.6, "memory": 4096, "user": "hadoop", "status": "running", "port": "4040"}]},
    {"id": 5, "name": "Server-05", "ip": "192.168.1.105", "cpu": 0, "memory": 0, "disk": 0, "status": "offline", "os": "Ubuntu 22.04", "purpose": "备份服务", "owner": "赵六", "location": "深圳机房-D区", "uptime": "0天", "lastReboot": "2024-11-07 18:30:00", "processes": []},
    {"id": 6, "name": "Server-06", "ip": "192.168.1.106", "cpu": 56, "memory": 72, "disk": 65, "status": "online", "os": "CentOS 7.9", "purpose": "交易服务", "owner": "孙七", "location": "北京机房-A区", "uptime": "88天5小时", "lastReboot": "2024-08-10 09:00:00", "processes": [{"pid": 1111, "name": "java", "cpu": 22.4, "memory": 2560, "user": "root", "status": "running", "port": "8080"}]},
    {"id": 7, "name": "Server-07", "ip": "192.168.1.107", "cpu": 34, "memory": 48, "disk": 42, "status": "online", "os": "Ubuntu 20.04", "purpose": "应用服务", "owner": "周八", "location": "上海机房-C区", "uptime": "23天9小时", "lastReboot": "2024-10-15 14:20:00", "processes": [{"pid": 2222, "name": "node", "cpu": 12.1, "memory": 1024, "user": "app", "status": "running", "port": "10001"}]},
    {"id": 8, "name": "Server-08", "ip": "192.168.1.108", "cpu": 88, "memory": 91, "disk": 79, "status": "warning", "os": "CentOS 8.5", "purpose": "数据处理", "owner": "吴九", "location": "深圳机房-D区", "uptime": "102天18小时", "lastReboot": "2024-07-28 11:00:00", "processes": [{"pid": 3333, "name": "spark-submit", "cpu": 38.5, "memory": 3584, "user": "hadoop", "status": "running", "port": "4040"}]},
    {"id": 9, "name": "Server-09", "ip": "192.168.1.109", "cpu": 12, "memory": 28, "disk": 19, "status": "online", "os": "Ubuntu 22.04", "purpose": "监控服务", "owner": "郑十", "location": "北京机房-B区", "uptime": "7天2小时", "lastReboot": "2024-11-01 07:30:00", "processes": [{"pid": 4444, "name": "prometheus", "cpu": 5.2, "memory": 512, "user": "monitor", "status": "running", "port": "9090"}]},
    {"id": 10, "name": "Server-10", "ip": "192.168.1.110", "cpu": 67, "memory": 74, "disk": 68, "status": "online", "os": "Windows Server 2022", "purpose": "风控系统", "owner": "李四", "location": "上海机房-C区", "uptime": "52天11小时", "lastReboot": "2024-09-17 10:00:00", "processes": [{"pid": 5555, "name": "sqlservr.exe", "cpu": 18.3, "memory": 2048, "user": "SYSTEM", "status": "running", "port": "1433"}]},
]